package cn.iocoder.yudao.module.ao.controller.admin.schedule.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;

/**
 * 更新课程内容 Request VO（支持编辑和新增）
 */
@Schema(description = "管理后台 - 更新课程内容 Request VO")
@Data
public class UpdateCourseReqVO {

    @Schema(description = "数据行ID（为空时为新增，否则为编辑）")
    private Long id;

    @Schema(description = "班级（新增时必填）")
    private String className;

    @Schema(description = "时间段（新增时必填）")
    private String classSection;

    @Schema(description = "星期几(1-7)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "星期几不能为空")
    @Min(value = 1, message = "星期几必须在1-7之间")
    @Max(value = 7, message = "星期几必须在1-7之间")
    private Integer dayOfWeek;

    @Schema(description = "教室（新增时必填）")
    private String classroom;

    @Schema(description = "课程内容(课程名/教师名)", requiredMode = Schema.RequiredMode.REQUIRED, example = "语文/张老师")
    @NotBlank(message = "课程内容不能为空")
    private String courseContent;

}
